package com.amiu.shiro.db.user;

public class User {
	private long id;
	private String username;
	private String password;
	private String password_salt;
	private boolean is_lock;
	private String description;

	public User (){}
	
	public User (String username,String password,String password_salt,boolean is_lock,String description){
		this.username = username;
		this.password = password;
		this.password_salt = password_salt;
		this.is_lock = is_lock;
		this.description = description;
	}
	 
	public User (long id,String username,String password,String password_salt,boolean is_lock,String description){
		this.id = id;
		this.username = username;
		this.password = password;
		this.password_salt = password_salt;
		this.is_lock = is_lock;
		this.description = description;
	}
	
	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}
	public boolean isIs_lock() {
		return is_lock;
	}
	public void setIs_lock(boolean is_lock) {
		this.is_lock = is_lock;
	}
	public long getId() {
		return id;
	}
	public void setId(long id) {
		this.id = id;
	}
	public String getUsername() {
		return username;
	}
	public void setUsername(String username) {
		this.username = username;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public String getPassword_salt() {
		return password_salt;
	}
	public void setPassword_salt(String password_salt) {
		this.password_salt = password_salt;
	}
	
	@Override
	public String toString() {
		return "$User$ --> ID: "+id+",USERNAME: "+username+",PASSWORD: "+password+",PASSWORD_SALT: "+password_salt+",IS_LOCK: "+is_lock+",DESCRIPTION: "+description;
	}
}
